package pers.qianyu.module.logging.exception;

import pers.qianyu.exception.*;

public class LoggingException extends LambBaseException {
    private static final long serialVersionUID = -4606377815991485891L;
    private final Integer code;

    public LoggingException(LoggingErrorCodeEnum errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
